/*
 * MassPropInit.cpp
 *
 *  Created on: Apr 29, 2011
 *      Author: tflanzer
 */
#include <string.h>
#include "Aircraft.h"

void MassPropInit(acStruct &a) {

	if(strcmp(AIRCRAFT_TYPE, "EASYGLIDERPRO") == 0) {
		a.mass = 1.125; // kg

		// Inertias
		*(a.I) = 0.0903; // Ixx
		*(a.I+1) = 0.0;
		*(a.I+2) = 0.0;
		*(a.I+3) = 0.0;
		*(a.I+4) = 0.0608; // Iyy
		*(a.I+5) = 0.0;
		*(a.I+6) = 0.0;
		*(a.I+7) = 0.0;
		*(a.I+8) = 0.1319; // Izz

		// Cg location
		a.cg[0] = -0.08;
		a.cg[1] = 0.0;
		a.cg[2] = 0.0;
	}
}
